/********************************************************************************
 *      Copyright:  (C) 2024 linuxer<linuxer@email.com>
 *                  All rights reserved.
 *
 *       Filename:  t_time.h
 *    Description:  This file
 *
 *        Version:  1.0.0(01/04/24)
 *         Author:  linuxer <linuxer@email.com>
 *      ChangeLog:  1, Release initial version on "01/04/24 15:13:01"
 *
 ********************************************************************************/

#ifndef TIME_H
#define TIME_H
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <time.h>
#include "logger.h"


/*
 *+------------------------------------------------------------------------------+
 *|     function:  get_time
 *|  description:  Get the time in years, months, days, hours, minutes, seconds
 *|   input args:  the pointer of time
 *|  output args:  time
 *| return value:  <0: failure ==0 ok
 *+------------------------------------------------------------------------------+
 */
int get_time(struct tm *now_time);

#endif

